<?php
namespace App\Module\User\Request\Child;

use Hyperf\Validation\Request\FormRequest;

class BindRequest extends FormRequest{

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'child_name'=>'required|max:4',
            'parent_mobile'=>'required|digits:11',
            'code'=>'required|max:4',
            'nickname'=>'required|max:2',
        ];
    }
}